﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Book
    {
        private int id;
        private string title;
        private int price;

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public string Title
        {
            get
            {
                return title ;
            }
            set
            {
                title  = value;
            }
        }

        public int Price
        {
            get
            {
                return price ;
            }
            set
            {
                price  = value;
            }
        }
        public string NickName { get; set; }
        public void PrintBookInfo()
        {
            Console.WriteLine("书编号：{0}  书名：《{1}》  书的价格：{2}元", this.id, this.title, this.price);
      }
    }
}
